From 06926864ae0513b8a001575c977cb273513bf233 Mon Sep 17 00:00:00 2001 From: Hollis Blanchard Date: Tue, 21 Nov 2006 15:25:02 -0600 Subject: [PATCH] [POWERPC][XEN] Ignore device tree nodes missing "device_type". The latest release of SLOF is missing mandatory "device_type" properties for the ISA and system-controller busses. Work around it by just printing a warning and continuing. CC: Segher Boessenkool Signed-off-by: Amos Waterland Signed-off-by: Hollis Blanchard --HG-- extra : transplant_source : y%01Ue%D3H%7B%1CL%0DLc%02P%D6%85%AC%E8%1F%07 --- xen/arch/powerpc/boot_of.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/powerpc/boot_of.c b/xen/arch/powerpc/boot_of.c index c81ca2b9eb..9bc897cbc8 100644 --- a/xen/arch/powerpc/boot_of.c +++ b/xen/arch/powerpc/boot_of.c @@ -818,8 +818,10 @@ static int __init boot_of_serial(void *oft) of_panic("package-to-path failed\n"); rc = of_getprop(p, "device_type", type, sizeof (type)); - if (rc == OF_FAILURE) - of_panic("fetching device type failed\n"); + if (rc == OF_FAILURE) { + of_printf("%s: fetching type of `%s' failed\n", __func__, buf); + continue; + } if (strcmp(type, "serial") != 0) continue; -- 2.30.2